// 编译模型生成构造函数

var Mongoose = require('mongoose');
var MovieSchema = require('../schemas/movie');
// 分页插件
var mongoosePaginate = require('mongoose-paginate');
MovieSchema.plugin(mongoosePaginate);

var Movie = Mongoose.model(
  'Movie', // 模型名称
  MovieSchema // 对应数据表
);

module.exports = Movie;
